<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreatePointGoodsOrdersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('point_goods_orders', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('store_id')->index()->comment('门店id');
            $table->string('name', 190)->comment('兑换人姓名');
            $table->integer('mobile')->comment('手机号码');
            $table->integer('point_goods_id')->comment('积分商品id');
            $table->integer('number')->comment('数量');
            $table->string('remark', 190)->comment('备注');
            $table->tinyInteger('status')->comment('1:正常 2:禁用');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('point_goods_orders');
    }
}
